package com.manli.generator;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@Slf4j
@SpringBootApplication
public class GeneratorApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(GeneratorApplication.class, args);
        String serverPort = context.getEnvironment().getProperty("server.port");
        String contextPath = context.getEnvironment().getProperty("server.servlet.context-path");
        log.info("Manli started at http://localhost:" + serverPort + contextPath + "/");
    }

}
